﻿<Window x:Class="MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="MainWindow" Height="191" Width="509" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:my="clr-namespace:_23._04">
  <Window.Resources>
    <CollectionViewSource x:Key="CustomersViewSource" d:DesignSource="{d:DesignInstance my:Customers, CreateList=True}" />
  </Window.Resources>
  <Grid DataContext="{StaticResource CustomersViewSource}" Height="152">
    <DataGrid AutoGenerateColumns="False" EnableRowVirtualization="True" Height="123" HorizontalAlignment="Left" ItemsSource="{Binding}" Margin="12,12,0,0" Name="CustomersDataGrid" RowDetailsVisibilityMode="VisibleWhenSelected" VerticalAlignment="Top" Width="463">
      <DataGrid.Columns>
        <DataGridTextColumn x:Name="Customer_idColumn" Binding="{Binding Path=customer_id}" Header="customer id" Width="SizeToHeader" />
        <DataGridTextColumn x:Name="First_nameColumn" Binding="{Binding Path=first_name}" Header="first name" Width="SizeToHeader" />
        <DataGridTextColumn x:Name="Middle_nameColumn" Binding="{Binding Path=middle_name}" Header="middle name" Width="SizeToHeader" />
        <DataGridTextColumn x:Name="Last_nameColumn" Binding="{Binding Path=last_name}" Header="last name" Width="SizeToHeader" />
        <DataGridTextColumn x:Name="Customer_phoneColumn" Binding="{Binding Path=customer_phone}" Header="customer phone" Width="SizeToHeader" />
        <DataGridTextColumn x:Name="Customer_emailColumn" Binding="{Binding Path=customer_email}" Header="customer email" Width="SizeToHeader" />
        <DataGridTextColumn x:Name="Other_customer_detailsColumn" Binding="{Binding Path=other_customer_details}" Header="other customer details" Width="SizeToHeader" />
      </DataGrid.Columns>
    </DataGrid>
  </Grid>
</Window>
